package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.KdlMara;
import com.javaweb.admin.query.KdlMaraQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface KdlMaraMapper extends BaseMapper<KdlMara> {
    @Select("select isnull(convert(varchar(20),max(sync_time),120),'2024-04-01 00:00:00') from kdl_mara where mastertype=#{mastertype}")
    String GetMaxSyncTime(String mastertype);

    IPage<KdlMara> getMaraList(IPage<KdlMara> page, @Param("req")KdlMaraQuery req);
}
